package com.lwp.ctable.service;

import org.omg.CORBA.PUBLIC_MEMBER;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.lwp.ctable.mapper.UserMapper;
import com.lwp.ctable.model.User;
import com.lwp.ctable.service.serviceImp.UserService;

import java.util.List;

@Service
public class UserServiceImpl implements UserService{

    @Resource
    private UserMapper userMapper;

    @Override
    public int deleteByPrimaryKey(Long userId) {
        return userMapper.deleteByPrimaryKey(userId);
    }

    @Override
    public int insert(User record) {
        return userMapper.insert(record);
    }

    @Override
    public int insertSelective(User record) {
        return userMapper.insertSelective(record);
    }

    @Override
    public User selectByPrimaryKey(Long userId) {
        return userMapper.selectByPrimaryKey(userId);
    }

    @Override
    public List<User> selectUserList(int param1,int param2) {
        return userMapper.selectUserList(param1 , param2 );
    }

    @Override
    public User selectByAccount(String Account){
        return userMapper.selectByAccount(Account);
    }
    @Override
    public int updateByPrimaryKeySelective(User record) {
        return userMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(User record) {
        return userMapper.updateByPrimaryKey(record);
    }

}
